import http from "@/utils/request"

export let addStu=(data)=>http.post('/students/addstu', { ...data })

// 获取学员信息
export let getStuListApi=(count=10,page=1,classes)=>http.get("/students/getstulist",{
    params:{
        count,
        page,
        class:classes
    }
})

// 编辑学员信息
export let editStuApi =(data)=>http.post("/students/updatestu",{
    ...data
})

// 删除学员信息
export let deleteStu =(sId)=>http.get("/students/delstu",{
    params:{
        sId
    }
})

// 搜索学员
export let searchname =(key)=>http.get("/students/searchstu",{
    params:{
        key
    }
})

// 获取学员列表
export let classList=()=>http.get("/students/getclasses")

